package JDBC;

import java.util.ArrayList;
import java.util.List;

import SwingModel.CmsAssignment;
import SwingModel.CmsGradebook;
import SwingModel.CmsQuiz;
import SwingModel.CmsStudent;

public class StudentGradebookActivities {

	public static CmsGradebook getGradebook(String courseID, CmsStudent student){
		CmsGradebook gradebook = null;
		
		try{
			List<CmsStudent> students = new ArrayList();
			students.add(student);
			List<CmsQuiz> quizzes = InstructorQuizActivities.getListOfQuiz(courseID);
			List<CmsAssignment> asgms = InstructorAssignmentActivities.getListOfAssignments(courseID);
			gradebook = new CmsGradebook(students, asgms, quizzes);
			
		}catch(Exception e){e.printStackTrace();}
		
		return gradebook;
	}
}
